<#assign title="FundInfo编辑页面">
<#include "/admin/inc/top.html"/>
<div class="main-content" id="main-content">
    <header class="header navbar bg-white shadow">
        <div class="btn-group tool-button">
            <a class="btn btn-primary navbar-btn" href="${base!}/private/fof/fundInfo" data-pjax><i
                    class="fa fa-reply"></i> 返回</a>
        </div>
    </header>
    <section class="content">
        <div class="form-wrapper" style="min-height:500px;">
            <section class="panel panel-form">
                <form id="unitAddForm" role="form" class="form-horizontal parsley-form" data-parsley-validate
                      action="${base!}/private/fof/fundInfo/editDo" method="post">
                    <input type="hidden" name="id" value="${fundInfo.id}">
                    <div class="row mb10">
                        <div class="col-lg-12">
                            <div class="form-group">
                                <label for="fundExtCode" class="col-sm-2 control-label">基金外部编号</label>

                                <div class="col-sm-8">
                                    <input type="text" id="fundExtCode" class="form-control" name="fundExtCode"
                                     placeholder="基金外部编号" value="${fundInfo.fundExtCode}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="fundExtSource" class="col-sm-2 control-label">外部数据源，0表示万得，1表示朝阳永续</label>

                                <div class="col-sm-8">
                                    <input type="text" id="fundExtSource" class="form-control" name="fundExtSource"
                                     placeholder="外部数据源，0表示万得，1表示朝阳永续" value="${fundInfo.fundExtSource}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="fundNameFull" class="col-sm-2 control-label">基金完整名称</label>

                                <div class="col-sm-8">
                                    <input type="text" id="fundNameFull" class="form-control" name="fundNameFull"
                                     placeholder="基金完整名称" value="${fundInfo.fundNameFull}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="fundNameShort" class="col-sm-2 control-label">基金短名称</label>

                                <div class="col-sm-8">
                                    <input type="text" id="fundNameShort" class="form-control" name="fundNameShort"
                                     placeholder="基金短名称" value="${fundInfo.fundNameShort}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="fundManagementCompany" class="col-sm-2 control-label">基金管理人</label>

                                <div class="col-sm-8">
                                    <input type="text" id="fundManagementCompany" class="form-control" name="fundManagementCompany"
                                     placeholder="基金管理人" value="${fundInfo.fundManagementCompany}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="fundManager" class="col-sm-2 control-label">基金经理</label>

                                <div class="col-sm-8">
                                    <input type="text" id="fundManager" class="form-control" name="fundManager"
                                     placeholder="基金经理" value="${fundInfo.fundManager}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="fundIssuingSacle" class="col-sm-2 control-label">基金发行初始规模</label>

                                <div class="col-sm-8">
                                    <input type="text" id="fundIssuingSacle" class="form-control" name="fundIssuingSacle"
                                     placeholder="基金发行初始规模" value="${fundInfo.fundIssuingSacle}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="fundTypeTarget" class="col-sm-2 control-label"></label>

                                <div class="col-sm-8">
                                    <input type="text" id="fundTypeTarget" class="form-control" name="fundTypeTarget"
                                     placeholder="" value="${fundInfo.fundTypeTarget}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="fundTypeStrategy" class="col-sm-2 control-label"></label>

                                <div class="col-sm-8">
                                    <input type="text" id="fundTypeStrategy" class="form-control" name="fundTypeStrategy"
                                     placeholder="" value="${fundInfo.fundTypeStrategy}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="fundTypeQuant" class="col-sm-2 control-label"></label>

                                <div class="col-sm-8">
                                    <input type="text" id="fundTypeQuant" class="form-control" name="fundTypeQuant"
                                     placeholder="" value="${fundInfo.fundTypeQuant}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="fundTypeHedging" class="col-sm-2 control-label"></label>

                                <div class="col-sm-8">
                                    <input type="text" id="fundTypeHedging" class="form-control" name="fundTypeHedging"
                                     placeholder="" value="${fundInfo.fundTypeHedging}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="fundStrategyId" class="col-sm-2 control-label">基金基准唯一编号</label>

                                <div class="col-sm-8">
                                    <input type="text" id="fundStrategyId" class="form-control" name="fundStrategyId"
                                     placeholder="基金基准唯一编号" value="${fundInfo.fundStrategyId}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="fundBenchmarkId" class="col-sm-2 control-label">基金基准唯一编号</label>

                                <div class="col-sm-8">
                                    <input type="text" id="fundBenchmarkId" class="form-control" name="fundBenchmarkId"
                                     placeholder="基金基准唯一编号" value="${fundInfo.fundBenchmarkId}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="fundStatus" class="col-sm-2 control-label">基金当前状态, 0表示基金已经结束，1表示未结束</label>

                                <div class="col-sm-8">
                                    <input type="text" id="fundStatus" class="form-control" name="fundStatus"
                                     placeholder="基金当前状态, 0表示基金已经结束，1表示未结束" value="${fundInfo.fundStatus}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                            <div class="form-group">
                                <label for="fundFundationDate" class="col-sm-2 control-label"></label>

                                <div class="col-sm-8">
                                    <input type="text" id="fundFundationDate" class="form-control" name="fundFundationDate"
                                     placeholder="" value="${fundInfo.fundFundationDate}">
                                </div>
                            </div>
                            <div class="hr-line-dashed"></div>
                        </div>
                    </div>
                    <div class="col-lg-3"></div>
                    <div class="col-lg-6">
                        <div class="form-group text-center">
                            <label></label>

                            <div>
                                <button class="btn btn-primary btn-block btn-lg btn-parsley"
                                        data-loading-text="正在提交...">提 交
                                </button>
                            </div>
                        </div>
                    </div>
                </form>
            </section>

        </div>
        <a class="exit-offscreen"></a>
    </section>
</div>
<script language="JavaScript">

    $(document).ready(function () {
        //initTreeView();
        $('#unitAddForm').ajaxForm({
            dataType: 'json',
            beforeSubmit: function (arr, form, options) {
                form.find("button:submit").button("loading");
            },
            success: function (data, statusText, xhr, form) {
                if (data.code == 200) {
                    Toast.success(data.msg);
                } else {
                    Toast.error(data.msg);
                }
                form.find("button:submit").button("reset");
            }
        });
    });
</script>
<#include "/admin/inc/bottom.html"/>